@extends('member.member')

<!-- title -->
@section('title', '我的文档')

<!-- 中间内容块 -->
@section('rightcontainer')
<div class="my_question member-container">
	<div class='ent_zhph ent3'>
		<ul class="mem_cate">
			<li class='firt-li'>排序方法:</li>
			<li>
    			<a href='/member/question?sort=0' class="@if($sort == 0) ent-bgcolor @endif">时间</a>
  			</li>
			<li>|</li>
			<li>
    			<a href='/member/question?sort=1' class="@if($sort == 1) ent-bgcolor @endif">浏览量</a>
  			</li>
			<li>|</li>
			<li>
    			<a href='/member/question?sort=2' class="@if($sort == 2) ent-bgcolor @endif">回复数</a>
 			</li>
    		<div class="clearfix"></div>
		</ul>
	</div>		
	@foreach($question as $key=>$que)
	<div class="mem_cont mt-10 @if($key>0) bodertop @endif" id="news_{{ $que->id }}">
		<div class="l-h-30 mt-10 ml-10 clearfix">
			<a href="{{url('/bbs/'.$que->id)}}"><span class="ft-18 ft-w fl">{{$que->title}}</span></a>
			<span class="fr">
				<a href="{{url('/bbs/post?cid='.$que->category_id.'&qid='.$que->id)}}" class="mr-20">
				    <img src="{{ asset('/images/front//member/write.png')}}">
				</a>
				<a href="javascript:void(0)" onclick="delete_one('/member/question/{{$que->id}}','{{$que->id}}','{{csrf_token()}}')">
				    <img src="{{ asset('/images/front//member/trash.png')}}">
				</a>
			</span>
		</div>
		<div class="l-h-30 ft-16 ml-10 clearfix">
			<span class="fl">{{count($que->answers)}}</span>
			<span class="fl cor-4">个回答</span>
			<span class="fl ml-20">{{$que->focus_count}}</span>
			<span class="fl cor-4">个关注</span>
<!-- 			<span class="can_stu fr">取消关注</span> -->
		</div>
	</div>
	@endforeach
	<div class="paginate">{!! $question->render() !!} </div>
</div>
@stop

<!-- 底部块 -->
@section('footer')
    @parent
@stop

